<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/cms/site/index" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>站点管理</h1>
    </div>
    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width:30px">ID</th>
              <th style="">站点名称</th>
              <th style="">站点目录</th>
              <th style="">站点域名</th>
              <th>状态</th>
              <th style="width:140px">操作</th>
            </tr>
          </thead>
          <tbody>
            <volist name="list" id="list">
              <tr data-id="{$list['siteid']}">
                <td>{$list['siteid']}</td>
                <td class="align-left">{$list['name']}</td>
                <td class="align-left">{$list['dirname']}</td>
                <td class="align-left">{$list['domain']}</td>
                <eq name="list['status']" value="1">
                  <td>
                    <span color="#2e3a1f">主站</span>
                  </td>
                  <td>
                   <a href="#" onclick="javascript:window.location.href='{:URL('cms/Site/editSite',array('sid'=>$list['siteid']))}'">修改</a>
                  </td>
                  <else/>
                  <td>
                    <span color="#7fb80e">从站</span>
                  </td>
                  <td><a href="#" onclick="javascript:window.location.href='{:URL('cms/Site/editSite',array('sid'=>$list['siteid']))}'">修改</a> |
                    <a href="javascript:;" id="J_delsite">删除</a> |
                    <a href="#" onclick="javascript:window.location.href='{:URL('cms/Site/exportTemplate',array('sid'=>$list['siteid']))}'">导出模版</a>
                  </td>
                </eq>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>
    </div>
    <div class="page-ft">
      <a class="btn" href="{:URL('cms/Site/addsite')}" />添加站点</a>
    </div>
  </div>
</body>

</html>
